import { BasicFetchResult } from '/@/api/model/baseModel';

export type SaaSOrgParams = {
  name?: string;
};

export interface SaaSOrgItem {
  id: string;
  name: string;
  code: string;
  description: string;
  parentId: string;
  createdTime: string;
  oneaccessOrgId: string;
  children: SaaSOrgItem[];
}

export type SaaSOrgDto = {
  id: string;
  name: string;
  code: string;
  idaasOrgId: string;
  // oneAccessOrgId: string;
  description: string;
  parentId: string;
  tenantCode: string;
  isBuiltIn: boolean;
};

export type OrganizationParams = {
  organizationName?: string;
};

export interface OrganizationListItem {
  organizationId: string;
  organizationName: string; //组织名称
  organizationCode: string; //组织编码
  description: string; //描述
  createTime: string; //创建时间
}

export type OrganizationGetResultModel = BasicFetchResult<OrganizationListItem>;
